package com.jyxd.web.data.basic;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name = "table_breathe_system_form")
@Data
@ApiModel("呼吸系统表单")
@TableName("table_breathe_system_form")
public class BreatheSystemForm {

    /**
     * 序列
     */
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Id
    @Column(name = "id", length = 32, nullable = false)
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid.hex")
    @ApiModelProperty("Id")
    private String id;

    @ApiModelProperty("患者id")
    @Column(name = "patient_id")
    private String patientId;

    @ApiModelProperty("数据时间")
    @Column(name = "data_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date dataTime;

    @ApiModelProperty("时间天")
    @TableField(exist = false)
    @Transient
    private String date;

    @ApiModelProperty("时间")
    @TableField(exist = false)
    @Transient
    private String time;
    /**
     number;
     hr;
     rr;
     bp;
     spo2;
     mode;
     fio2;
     peep;
     f;
     ti;
     pc;
     pinsp;
     ps;
     vt;
     ie;
     ramp;
     ipap;
     epap;
     ppeak;
     pplat;
     pmean;
     vti;
     vte;
     rrr;
     mv;
     flowpeak;
     airwayResistance;
     compliance;
     trachealIntubation;
     tracheotomy;
     bronchoscopy;
     bedRise;
     cuffPressure;
     ways;
     quantity;
     color;
     coughAbility;
     aerosolInhalation;
     remark,
     nurseSign;
     nurseSignTwo;
     status,
     createTime
     */
    @ApiModelProperty("呼吸机编号")
    @Column(name = "number")
    private String number;

    @ApiModelProperty("心率")
    @Column(name = "hr")
    private String hr;

    @ApiModelProperty("呼吸")
    @Column(name = "rr")
    private String rr;

    @ApiModelProperty("有创")
    @Column(name = "bp")
    private String bp;

    @ApiModelProperty("无创")
    @Column(name = "nbps")
    private String nbps;

    @ApiModelProperty("spo2")
    @Column(name = "spo2")
    private String spo2;

    @ApiModelProperty("呼吸机模式")
    @Column(name = "mode")
    private String mode;

    @ApiModelProperty("氧浓度")
    @Column(name = "fio2")
    private String fio2;

    @ApiModelProperty("peep")
    @Column(name = "peep")
    private String peep;

    @ApiModelProperty("f")
    @Column(name = "f")
    private String f;

    @ApiModelProperty("ti")
    @Column(name = "ti")
    private String ti;

    @ApiModelProperty("pc")
    @Column(name = "pc")
    private String pc;

    @ApiModelProperty("pinsp")
    @Column(name = "pinsp")
    private String pinsp;

    @ApiModelProperty("ps")
    @Column(name = "ps")
    private String ps;

    @ApiModelProperty("vt")
    @Column(name = "vt")
    private String vt;

    @ApiModelProperty("ie")
    @Column(name = "ie")
    private String ie;

    @ApiModelProperty("ramp")
    @Column(name = "ramp")
    private String ramp;

    @ApiModelProperty("ipap")
    @Column(name = "ipap")
    private String ipap;

    @ApiModelProperty("epap")
    @Column(name = "epap")
    private String epap;

    @ApiModelProperty("Ppeak")
    @Column(name = "ppeak")
    private String ppeak;

    @ApiModelProperty("Pplat")
    @Column(name = "pplat")
    private String pplat;

    @ApiModelProperty("Pmean")
    @Column(name = "pmean")
    private String pmean;

    @ApiModelProperty("VTi")
    @Column(name = "vti")
    private String vti;

    @ApiModelProperty("VTe")
    @Column(name = "vte")
    private String vte;

    @ApiModelProperty("rrr")
    @Column(name = "rrr")
    private String rrr;

    @ApiModelProperty("mv")
    @Column(name = "mv")
    private String mv;

    @ApiModelProperty("FlowPeak")
    @Column(name = "flowpeak")
    private String flowpeak;

    @ApiModelProperty("气道阻力")
    @Column(name = "airway_resistance")
    private String airwayResistance;

    @ApiModelProperty("顺应性")
    @Column(name = "compliance")
    private String compliance;

    @ApiModelProperty("气管插管")
    @Column(name = "tracheal_intubation")
    private String trachealIntubation;

    @ApiModelProperty("气管切开")
    @Column(name = "tracheotomy")
    private String tracheotomy;

    @ApiModelProperty("纤支镜检查")
    @Column(name = "bronchoscopy")
    private String bronchoscopy;

    @ApiModelProperty("床头抬高")
    @Column(name = "bed_rise")
    private String bedRise;

    @ApiModelProperty("套囊压力")
    @Column(name = "cuff_pressure")
    private String cuffPressure;

    @ApiModelProperty("方式")
    @Column(name = "ways")
    private String ways;

    @ApiModelProperty("量")
    @Column(name = "quantity")
    private String quantity;

    @ApiModelProperty("颜色")
    @Column(name = "color")
    private String color;

    @ApiModelProperty("咳嗽能力评价")
    @Column(name = "cough_ability")
    private String coughAbility;

    @ApiModelProperty("雾化吸入")
    @Column(name = "aerosol_inhalation")
    private String aerosolInhalation;

    @ApiModelProperty("备注")
    @Column(name = "remark")
    private String remark;

    @ApiModelProperty("护士签名")
    @Column(name = "nurse_sign")
    private String nurseSign;

    @ApiModelProperty("护士2签名")
    @Column(name = "nurse_sign_two")
    private String nurseSignTwo;

    @Column(name = "status")
    private String status;

    @Column(name = "create_time")
    private Date createTime;
}
